package com.lwj.model.configuration;

import com.lwj.model.AuditModel;
import org.springframework.data.annotation.Id;

import java.io.Serializable;

/**
 * file_manage
 * @author 
 */
public class FileManage extends AuditModel implements Serializable {
    private String fileId;

    /**
     * 文件名称
     */
    private String fileName;

    /**
     * 文件大小
     */
    private int fileSize;

    /**
     * 文件类型
     */
    private String type;

    /**
     * 关联主键
     */
    private String relationId;

    /**
     * 文件序号，0开始
     */
    private int index;

    /**
     * 图片保存的路径
     */
    private String path;

    /**
     * 源文件id
     */
    private String source;

    private String code;

    public FileManage() {
    }

    public FileManage( String fileId,String fileName, int fileSize, String type, String relationId, int index, String path, String source, String code) {
        this.fileId=fileId;
        this.fileName = fileName;
        this.fileSize = fileSize;
        this.type = type;
        this.relationId = relationId;
        this.index = index;
        this.path = path;
        this.source = source;
        this.code = code;
    }

    private static final long serialVersionUID = 1L;

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public int getFileSize() {
        return fileSize;
    }

    public void setFileSize(int fileSize) {
        this.fileSize = fileSize;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getRelationId() {
        return relationId;
    }

    public void setRelationId(String relationId) {
        this.relationId = relationId;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}